package com.ra.landlord;

import java.io.File;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Transient;

/**
 * 品牌公寓-推广楼
 * 
 * @author colin
 * 
 */
@Entity
public class Promotehouse {

	private Integer id;

	// 楼房图片路径
	private String houseFileName;

	// Transient
	private File house;

	// Transient
	private String houseContentType;

	// 房屋类型：0楼房 1房间
	private String houseType;

	// 楼房或房间id
	private Integer houseId;

	private BlandApartment blandApartment;

	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Transient
	public File getHouse() {
		return house;
	}

	public void setHouse(File house) {
		this.house = house;
	}

	@Transient
	public String getHouseContentType() {
		return houseContentType;
	}

	public void setHouseContentType(String houseContentType) {
		this.houseContentType = houseContentType;
	}

	public String getHouseFileName() {
		return houseFileName;
	}

	public void setHouseFileName(String houseFileName) {
		this.houseFileName = houseFileName;
	}

	public String getHouseType() {
		return houseType;
	}

	public void setHouseType(String houseType) {
		this.houseType = houseType;
	}

	public Integer getHouseId() {
		return houseId;
	}

	public void setHouseId(Integer houseId) {
		this.houseId = houseId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	public BlandApartment getBlandApartment() {
		return blandApartment;
	}

	public void setBlandApartment(BlandApartment blandApartment) {
		this.blandApartment = blandApartment;
	}

}
